﻿#include "CmdSetHeatMapRemoveSelectedTracer.h"
#include <QFile>
#include <QDebug>
#include "BaseModule/IBaseSignal.h"
#include "PostCommandPy.h"

namespace PostCommand
{
    CmdSetHeatMapRemoveSelectedTracer::CmdSetHeatMapRemoveSelectedTracer()
        : CommandBase()
    {
        this->initCmdName();
    }
    CmdSetHeatMapRemoveSelectedTracer::~CmdSetHeatMapRemoveSelectedTracer()
    {
    }

    bool CmdSetHeatMapRemoveSelectedTracer::execute()
    {
        // bool _success = false;
        emit IBaseSignalInstance->signal_setHeatMapRemoveSelectedTracer(m_mainWindowId, m_infoidList);
        return true;
    }

    void CmdSetHeatMapRemoveSelectedTracer::undo()
    {
    }

    void CmdSetHeatMapRemoveSelectedTracer::redo()
    {
        // execute();
    }

    void CmdSetHeatMapRemoveSelectedTracer::setHeatMapRemoveSelectedTracer(int mainWindowId, QList<int> infoidList)
    {
        m_mainWindowId = mainWindowId;
        m_infoidList = infoidList;
    }

} // namespace PostCommand
